//
// Created by cch on 2022/4/27.
//
#include "FeatureMatch.h"
#include "Trangulate.h"

class Factory {

public:
  Factory() {
    m_Trangulate = new Trangulate();
    m_Match = new LKMatch();
  }

  void Process() {
    m_Trangulate->EstimateLandMarkBySelf();
    m_Trangulate->EstimateLandMarkByOpencv();
  }

private:
  Trangulate *m_Trangulate;
  Match *m_Match;

public:
  ~Factory() {
    delete m_Match;
    delete m_Trangulate;
  }
};

int main() {
  Factory *factory = new Factory();
  factory->Process();

  delete factory;
  return 0;
}
